<?php /* Smarty version 2.6.18, created on 2009-05-07 08:40:36
         compiled from ua-admin/industry_edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_radios', 'ua-admin/industry_edit.html', 48, false),array('modifier', 'default', 'ua-admin/industry_edit.html', 48, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/admin.js"></script>
</head>

<body leftmargin="10" topmargin="10">
<table width="100%" border="0" cellpadding="2" cellspacing="6"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide"><tr>
  <td><div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo;<a href="./industry.php"> 行业类别管理</a>&nbsp;&raquo;&nbsp;
      <?php echo $this->_tpl_vars['ActionType']; ?>

      行业类别</div></td>
</tr></table>
		  <form name="industryaddfrm" action="industry.php?action=mod" method="post">
		  <?php if ($_GET['id'] != ""): ?><input type="hidden" name="id" value="<?php echo $_GET['id']; ?>
"><?php endif; ?>
        <table width="100%"  border="0" cellpadding="8" cellspacing="1" class="tableborder">
		 <tr class="header">
		  <td colspan="2">行业类别</td>
		</tr>
         <tr>
            <td align="center" class="altbg1">父 类 别:
            <td class="altbg2"><select name="parentid" id="parentid">
              <option value="0">根类别</option>
			  <?php echo $this->_tpl_vars['ParentIndustryOptions']; ?>

            </select></td>
          </tr>
		  <?php if ($_GET['id'] != ""): ?>
          <tr>
            <td align="center" class="altbg1">名 称：</td>
			<td class="altbg2"><input name="indname" type="text" id="indname" value="<?php echo $this->_tpl_vars['SortInfo']['Name']; ?>
"></td>
          </tr>
		  <?php else: ?>
          <tr class="altbg1">
            <td align="center">名 称：<a href="#" onClick="newnode = $('addrain').firstChild.cloneNode(true);  $('addrainmore').appendChild(newnode)">[+]</a></td>
			<td class="altbg2"><input name="indname[]" type="text" value=""></td>
          </tr>
		<tbody id="addrain" style="display: none;">
		<tr class="altbg1">
		<td class="altbg1" align="center"><div style="color: #00FF66">名称:</div></td>
		<td class="altbg2"><input name="indname[]" type="text" value=""></td>
		</tr>
		</tbody>
		<tbody id="addrainmore"></tbody>
		  <?php endif; ?>
          <tr>
            <td align="center" class="altbg1">是否作为市场库分类？
            <td class="altbg2"><?php echo smarty_function_html_radios(array('name' => "industry[ib]",'options' => $this->_tpl_vars['ShowIndex'],'checked' => ((is_array($_tmp=@$this->_tpl_vars['SortInfo']['IndustryIb'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)),'separator' => ""), $this);?>
</td>
          </tr>
          <tr>
            <td class="altbg1" align="center">是否显示在各大栏目首页？
            <td class="altbg2"><?php echo smarty_function_html_radios(array('name' => "industry[ia]",'options' => $this->_tpl_vars['ShowIndex'],'checked' => ((is_array($_tmp=@$this->_tpl_vars['SortInfo']['IndustryIa'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)),'separator' => ""), $this);?>
</td>
          </tr>
          <tr>
            <td colspan="2" align="center"><table border="0" cellpadding="5" cellspacing="0" class="button">
                <tr>
                  <td><input  name="save" type="submit" id="save" value=" 保存 " class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
                  <td><input  name="reset" type="reset" id="reset" value="取消" class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
                </tr>
              </table>
          </tr>
        </table>
      </form></td></tr></table>
<br /><br />
</body>
</html>
